package net.oschina.git.fsppp.view.contract;

import net.oschina.git.fsppp.common.base.BaseModel;
import net.oschina.git.fsppp.common.base.BasePresenter;
import net.oschina.git.fsppp.common.base.BaseView;
import net.oschina.git.fsppp.model.P3Dir;
import net.oschina.git.fsppp.model.SimpleResponse;
import rx.Observable;

import java.util.List;

/**
 * Created by QiHuang on 2016/10/21.
 */
public interface PropertyContract {
    interface Model extends BaseModel {
        Observable<SimpleResponse<List<P3Dir>>> getChildDirs(P3Dir dir);
    }

    interface View extends BaseView {
        void returnChildDirs(List<P3Dir> dirs);
    }

    abstract class Presenter extends BasePresenter<View,Model> {
        public Presenter(View view, Model model) {
            super(view, model);
        }

        public abstract void getChildDirs(P3Dir dir);
    }
}
